<#assign resources="${rc.contextPath}/resources">
<#assign path="${rc.contextPath}">
<head>
<meta charset="UTF-8">
    <title>特价商品</title>
    <script >
		var path="${path}";
	</script>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link href="${resources}/plugins/fontAwesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="${resources}/css/everydaySpecial.css" type="text/css">
    <link rel="stylesheet" href="${resources}/css/common.css" type="text/css">
     <#include "setwxshare.ftl"/>
</head>


<body>

 <div id="container">
    <div class="title"><h3>天天特价</h3></div>
    <div class="content">
        <div>
            <ul id="produceList">
				<#list goodslist as goods>
	                  <li value="${goods.id}">	
							<a href="${path}/commodity/info?goodsId=${goods.id}">
								<div class="imgBox"><img src="${goods.picurl}" alt=""></div>
									<h3>${goods.name}</h3>
									<div class="originPrice">原价:￥${goods.price}元</div>
									<p>特价:${goods.promotionPrice}元</p>
							</a>
							<button onclick="buy(${goods.id})">立即购买</button>
					  </li>
				</#list>
            </ul>
             <div class="tip">向上滑动加载更多...</div>
        </div>
    </div>
</div>
<script src="${resources}/plugins/jquery/2.2.2/jquery.min.js"></script>
<script src="${resources}/js/iscroll-probe.js"></script>
<script src="${resources}/js/common.js"></script>
<script src="${resources}/js/everydaySpecial.js"></script>
</body>
<script >
	function buy(goodsId){
		window.location.href="${path}/manage/commodityCart/addCart?goodsId="+goodsId;
	}
</script>
 

 
